package com.ruoyi.questionnaire.domain;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.annotation.Excel;

/**
 * 问卷答卷VO类
 * 
 * 用于前端显示的答卷信息，包含问卷标题和用户信息
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class QuestionnaireAnswerVO {
    /** 答卷ID，主键 */
    @Excel(name = "答卷ID")
    private Long id;
    
    /** 所属问卷ID，外键关联questionnaire表 */
    private Long questionnaireId;
    
    /** 问卷标题 */
    @Excel(name = "问卷标题")
    private String questionnaireTitle;
    
    /** 答题用户ID，外键关联sys_user表 */
    private Long userId;
    
    /** 用户姓名 */
    @Excel(name = "提交者")
    private String userName;
    
    /** 用户邮箱 */
    @Excel(name = "提交者邮箱")
    private String userEmail;
    
    /** 用户手机号 */
    @Excel(name = "提交者手机")
    private String userPhone;
    
    /** 提交时间 */
    @Excel(name = "提交时间")
    private Date submitTime;
    
    /** 状态（1-已提交，0-草稿） */
    @Excel(name = "状态")
    private String status;

    /** 答卷详情列表 */
    private List<QuestionnaireAnswerDetail> details;

    /** 答卷内容 */
    @Excel(name = "答卷内容")
    private String answerSummary;

    // ==================== Getter/Setter 方法 ====================
    
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    
    public Long getQuestionnaireId() { return questionnaireId; }
    public void setQuestionnaireId(Long questionnaireId) { this.questionnaireId = questionnaireId; }
    
    public String getQuestionnaireTitle() { return questionnaireTitle; }
    public void setQuestionnaireTitle(String questionnaireTitle) { this.questionnaireTitle = questionnaireTitle; }
    
    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }
    
    public String getUserName() { return userName; }
    public void setUserName(String userName) { this.userName = userName; }
    
    public String getUserEmail() { return userEmail; }
    public void setUserEmail(String userEmail) { this.userEmail = userEmail; }
    
    public String getUserPhone() { return userPhone; }
    public void setUserPhone(String userPhone) { this.userPhone = userPhone; }
    
    public Date getSubmitTime() { return submitTime; }
    public void setSubmitTime(Date submitTime) { this.submitTime = submitTime; }
    
    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }

    public List<QuestionnaireAnswerDetail> getDetails() { return details; }
    public void setDetails(List<QuestionnaireAnswerDetail> details) { this.details = details; }

    public String getAnswerSummary() { return answerSummary; }
    public void setAnswerSummary(String answerSummary) { this.answerSummary = answerSummary; }
} 